let initRouters = {
  list: [
    { id: "sub1", msg: "首页", list: [{ id: 1, msg: "查看统计", path: "/mainhome/fitsthome" }] },
    {
      id: "sub2",
      msg: "预约管理",
      list: [
        { id: 2, msg: "预约挂号", path: "/mainhome/appointmentview" },
        { id: 3, msg: "医生排班", path: "/mainhome/schedulingview" },
      ],
    },
    {
      id: "sub3",
      msg: "费用管理",
      list: [
        { id: 4, msg: "门诊消费记录", path: "/mainhome/consumptionview" },
        { id: 5, msg: "门诊充值记录", path: "/mainhome/rechargeview" },
        { id: 6, msg: "退款记录", path: "/mainhome/refundview" },
      ],
    },
    {
      id: "sub4",
      msg: "医院管理",
      list: [
        { id: 7, msg: "医生管理", path: "/appointmentview" },
        { id: 8, msg: "科室管理", path: "/schedulingview" },
        { id: 9, msg: "健康百科", path: "/schedulingview" },
        { id: 10, msg: "医院导航", path: "/schedulingview" },
        { id: 11, msg: "医院简介", path: "/schedulingview" },
        { id: 12, msg: "预约须知", path: "/schedulingview" },
      ],
    },
    {
      id: "sub5",
      msg: "系统设置",
      list: [
        { id: 13, msg: "管理员设置", path: "/mainhome/administratorsview" },
        { id: 14, msg: "角色设置", path: "/mainhome/roleview" },
        { id: 15, msg: "职称管理", path: "/mainhome/titleview" },
        { id: 16, msg: "消息公告", path: "/mainhome/messageview" },
        { id: 17, msg: "修改密码", path: "/mainhome/changepassword" },
      ],
    },
  ],
};

let listRouter = (state = initRouters, action: any) => {
  return state;
};
export default listRouter;
